package cc.miwuya.owner.api;

import cc.miwuya.common.util.Result;
import cc.miwuya.owner.domain.Orders;
import cc.miwuya.owner.domain.User;
import org.springframework.web.bind.annotation.*;

/**
 * @Author 迷雾森林
 * @Date 2024-02-27 10:40
 */

public interface UserApi {
    @GetMapping("/owner/ownerInfo/{ownerId}")
    Result ownerInfo(@PathVariable Long ownerId);

    @GetMapping("/owner/getUser/{username}")
    User getUserByUsername(@PathVariable String username);

    /**
     * 获取当前登录的用户ID
     */
    @GetMapping("/owner/getCurrentId")
    public Long getCurrentId();
    @PostMapping("/owner/order/addOrder")
    public void addOrder(@RequestBody Orders order);

    @GetMapping("/owner/order/getTollManOrderList")
    public Object getTollManOrderList(@RequestParam("name") String name,@RequestParam("TollManId") Long TollManId);
    @GetMapping("/owner/order/deleteOrder/{id}")
    public void deleteOrder(@PathVariable Long id);
}
